<?php

use Faker\Generator as Faker;

$factory->define(App\Models\Base\Order::class, function (Faker $faker) {
    return [
        'order_sn' => rand(1, 99999),
        'server_id' => rand(1, 3),
        'userid' => rand(1, 99999),
        'player_id' => rand(1, 99999),
        'player_name' => $faker->username(),
        'amount' => rand(10, 2000),
        'channel_id' => rand(1, 3),
        'status' => rand(0, 1),
        'order_time' => time() - rand(6000, 60000),
        'pay_time' => time() - rand(6000, 60000),
        'platform_order_sn' => str_random(10),
        'desc' => str_random(10),
    ];
});
